/**
 * CL_Animate缓动公式向下兼容补丁
 * Author: 陆楚良
 * Version: 1.0.1
 * Date: 2014/12/17
 *
 * https://git.oschina.net/luchg/CL_Animate.js.git
 *
 * License: http://www.apache.org/licenses/LICENSE-2.0
 */
!function(){
	function easing(An){
		var A = An.easing;
		A["default"]	= "para-dec";
		A["uniform"] 	= A.linear;
		A["acc"]	 	= function(t){return 2*0.5*t*t};
		A["dec"]		= function(t){return 2*t-2*0.5*t*t};
		A["accdec"]	 	= function(t){return t<0.5 ? 0.5*4*t*t : 0.5+2*(t-=0.5)-4*0.5*t*t;};
		A["arc-acc"] 	= function(t){return 1-Math.pow(1-t*t,0.5)};
		A["arc-dec"] 	= function(t){return Math.pow(1-(t=1-t)*t,0.5)};
		A["arc-accdec"] = function(t){return t<0.5 ? 0.5-Math.pow(0.25-t*t,0.5) : 0.5+Math.pow(0.25-(t=1-t)*t,0.5)};
		A["para-acc"]	= function(t){return Math.pow(t,5)};
		A["para-dec"]	= function(t){return 1-Math.pow(1-t,5)};
	};
	// RequireJS && SeaJS && GlightJS
	if (typeof define === "function") {
	    define(function() {
	        return easing;
	    });
	// NodeJS
	} else if (typeof exports !== "undefined") {
	    module.exports = easing;
	} else if (typeof CL_Animate === "function") {
	    easing(CL_Animate);
	}
}();